using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.RbacData.Domain.Traceabilitys
{
    /// <summary>
    /// 溯源码QR码模型
    /// </summary>
    public class QRCodeModel : BaseEetity
    {
        /// <summary>
        /// 产品ID
        /// </summary>
        public int ProductId { get; set; }

        /// <summary>
        /// 唯一标识码
        /// </summary>
        public string UniqueCode { get; set; } = null!;

        /// <summary>
        /// 生成日期
        /// </summary>
        public DateTime GeneratedDate { get; set; }

        /// <summary>
        /// 是否已使用
        /// </summary>
        public bool IsUsed { get; set; } = false;

        /// <summary>
        /// 使用日期
        /// </summary>
        public DateTime? UsedDate { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNumber { get; set; } = null!;
    }
} 